package support.model;

/**
 * @Author Antony
 * @Since 2018/2/28 10:42
 */
public class Dish {

    private Integer calories;

    private String name;

    private Boolean vegetarian;

    private Type type;

    private boolean valid;

    public Dish(Integer calories, String name) {
        this.calories = calories;
        this.name = name;
    }

    public Dish() {
    }

    public Dish(String name, Boolean vegetarian, Integer calories, Type type) {
        this.calories = calories;
        this.name = name;
        this.vegetarian = vegetarian;
        this.type = type;
    }

    public Integer getCalories() {
        return calories;
    }

    public void setCalories(Integer calories) {
        this.calories = calories;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getVegetarian() {
        return vegetarian;
    }

    public void setVegetarian(Boolean vegetarian) {
        this.vegetarian = vegetarian;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }


    public boolean isValid() {
        return valid;
    }

    public void setValid(boolean valid) {
        this.valid = valid;
    }

    public enum Type {MEAT, FISH, OTHER}


    @Override
    public String toString() {
        return "Dish{" +
                "calories=" + calories +
                ", name='" + name + '\'' +
                ", vegetarian=" + vegetarian +
                ", type=" + type +
                '}';
    }
}
